package com.fxd.shopping.member;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 调用远程服务
 * 1，引入open-feign
 * 2，编写一个feign接口
 * 3，开启远程调用功能
 */
@MapperScan("com.fxd.shopping.member.dao")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.fxd.feigns.**")
@SpringBootApplication
public class ShoppingMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShoppingMemberApplication.class, args);
    }

}
